Comment (computer programming)
part 29/37 · 66.0 KB total
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
const VALUE = 'value';
// C++ style line comment
private $value;
# script style line comment
public function __construct($value = null) {
$this->value = $value;
}
}
Security issues
In interpreted languages the comments are viewable to the end user of the program. In some cases, such as sections of code that are "commented out", this may present a security vulnerability.cite-ref-insecurecomments-58-0[58]
See also
Notes and references
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────